package com.liqi.monitor.mapper;

import java.util.List;
import com.liqi.monitor.domain.DvDeploymentSystem;

/**
 * 设备运行状态Mapper接口
 * 
 * @author zh
 * @date 2022-10-25
 */
public interface DvDeploymentSystemMapper 
{
    /**
     * 查询设备运行状态
     * 
     * @param id 设备运行状态主键
     * @return 设备运行状态
     */
    public DvDeploymentSystem selectDvDeploymentSystemById(Long id);

    /**
     * 查询设备运行状态列表
     * 
     * @param dvDeploymentSystem 设备运行状态
     * @return 设备运行状态集合
     */
    public List<DvDeploymentSystem> selectDvDeploymentSystemList(DvDeploymentSystem dvDeploymentSystem);

    /**
     * 新增设备运行状态
     * 
     * @param dvDeploymentSystem 设备运行状态
     * @return 结果
     */
    public int insertDvDeploymentSystem(DvDeploymentSystem dvDeploymentSystem);

    /**
     * 修改设备运行状态
     * 
     * @param dvDeploymentSystem 设备运行状态
     * @return 结果
     */
    public int updateDvDeploymentSystem(DvDeploymentSystem dvDeploymentSystem);
    
    /**
     * 修改设备运行状态
     * 
     * @param dvDeploymentSystem 设备运行状态
     * @return 结果
     */
    public int updateDeploymentSystemByDeviceId(DvDeploymentSystem dvDeploymentSystem);

    /**
     * 删除设备运行状态
     * 
     * @param id 设备运行状态主键
     * @return 结果
     */
    public int deleteDvDeploymentSystemById(Long id);

    /**
     * 批量删除设备运行状态
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDvDeploymentSystemByIds(Long[] ids);
    
	public DvDeploymentSystem selectDeploymentByDeviceId(String deviceId);

	public DvDeploymentSystem selectByDeviceId(String deviceId);

	
    /**
     * 根据自编设备号更新设备状态日志信息
     */

    public int updateStatusLogInCode(DvDeploymentSystem dvDeploymentSystem);

    /**
     * 查询设备状态日志列表 用于定时任务
     *
     * @return 设备状态日志集合
     */
    public List<DvDeploymentSystem> selectDvEquipmentSystemForTask();
    
    public List<DvDeploymentSystem> selectDvEquipmentSystemListForTask(DvDeploymentSystem deploymentSystem);

    
}
